<tagLib name="html" />
<script language="javascript" src="/Public/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<div id="main-content">
    <div id="main" class="main">

            <div class="user-hd">
                <h2>智慧医疗>>订单流水</h2>
            </div>
            <div class="clearfix searchspin">
				<dl>
					<dt>筛选条件:</dt>
					<dd>
						<form action="{:U('Cinema/ylOrderList')}" method="get">
						<div class="fl">
							开始时间：<input type="text" name="start" id="start" value="{$_GET['start']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'end\')||\'%y-%M-%d\'}'})"</literal> readonly="readonly" size="30" style="width: 90px;"/>
							<input type="text" name="end" id="end" value="{$_GET['end']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({minDate:'#F{$dp.$D(\'start\')}',maxDate:'%y-%M-%d'})"</literal> readonly="readonly" size="30" style="width: 90px;" />
							所属医院：
							<select name="host_name" class="" style="height:30px;">
								<option value="" <if condition="empty($_GET['host_name'])">selected="selected"</if> >-</option>
								<foreach name="hosts" item="vo" key="k">
									<option value="{$k}" <if condition="$_GET['host_name'] eq $k">selected="selected"</if> >{$vo}</option>
								</foreach>
							</select>
							支付类型：
							<select name="pay_type" class="" style="height:30px;">
								<option value="0" <if condition="empty($_GET['pay_type'])">selected="selected"</if> >-</option>
								<option value="icpay" <if condition="$_GET['pay_type'] eq 'icpay'">selected="selected"</if> >晶石 IC 卡</option>
								<option value="alipay" <if condition="$_GET['pay_type'] eq 'alipay'">selected="selected"</if> >支付宝</option>
								<option value="wxpay" <if condition="$_GET['pay_type'] eq 'wxpay'">selected="selected"</if> >微信</option>
							</select>
							<a href="{:U('Cinema/ylOrderList')}" class="sblue-btn" style="height:28px;width:68px;">清空 </a>
							<input type="submit" class="sblue-btn" value="检索" />						
						</div>
						<div class="clear"></div>
						</form>
					</dd>
				</dl>
            </div>
            <div class="spin-cont">
                <table>
					<p style="padding-bottom:20px;">
					总订单数：<span class="text_red">{$count0|default="0"}</span> 次；
					总收益：<span class="text_red">{$count_money0|default="0"}</span> 元--------
					查询订单数：<span class="text_red">{$count|default="0"}</span> 次；
					查询总收益：<span class="text_red">{$count_money|default="0"}</span> 元；
					</p>
                    <tr>
						<th style="width: 180px;">医院名称</th>
                        <th style="width: 180px;">订单号</th>
						<th style="width: 180px;">下单时间</th>
						<th style="width: 180px;">支付账户</th>
						<th style="width: 180px;">支付金额(元)</th>
						<th style="width: 180px;">支付类型</th>
                    </tr>
					<notempty name="datas.data_list">
						<volist name="datas.data_list" id="vo">
							<tr>
								<td><?php echo $hosts[$vo['host_name']]; ?></td>
								<td>{$vo.order_sn}</td>
								<td>{$vo.order_time}</td>
								<td>{$vo.pay_user}</td>
								<td>{$vo.money}</td>
								<td>
									<switch name="vo.pay_type" >
										<case value="wxpay">微信</case>
										<case value="alipay">支付宝</case>
										<default/>晶石 IC 卡
									</switch>
								</td>
							</tr>
						</volist>
					<else/>
						<tr><td colspan="6">暂无相关数据</td></tr>
					</notempty>
                </table>
                <div class="page txt-center">
                    {$datas.pager}
                </div>
            </div>

    </div>
</div>